package com.lx.entity;

import java.util.List;

/**
 * @author c先生
 * @date 2022年03月31日 下午 7:34:07
 * @describe
 */

public class Cinema {
    private Integer cinemaId; //影院编号
    private String cinemaName;//影院名称
    private String cinemaPath;//影院地址
    private List<Studio> studios;//影厅

    @Override
    public String toString() {
        String studioStr = "\t";
        for (Studio studio : studios) {
            studioStr += studio.toString()+"\n\t";
        }
        return
                "影院编号：" + cinemaId +
                ", 影院名称：'" + cinemaName + '\'' +
                ", 影院地址：'" + cinemaPath + '\'' +
                ", 包含的影厅如下：\n" + studioStr+"\n"
                ;
    }

    public Integer getCinemaId() {
        return cinemaId;
    }

    public void setCinemaId(Integer cinemaId) {
        this.cinemaId = cinemaId;
    }

    public String getCinemaName() {
        return cinemaName;
    }

    public void setCinemaName(String cinemaName) {
        this.cinemaName = cinemaName;
    }

    public String getCinemaPath() {
        return cinemaPath;
    }

    public void setCinemaPath(String cinemaPath) {
        this.cinemaPath = cinemaPath;
    }

    public List<Studio> getStudios() {
        return studios;
    }

    public void setStudios(List<Studio> studios) {
        this.studios = studios;
    }

    public Cinema(Integer cinemaId, String cinemaName, String cinemaPath) {
        this.cinemaId = cinemaId;
        this.cinemaName = cinemaName;
        this.cinemaPath = cinemaPath;
    }

    public Cinema() {
    }

    public Cinema(Integer cinemaId, String cinemaName, String cinemaPath, List<Studio> studios) {
        this.cinemaId = cinemaId;
        this.cinemaName = cinemaName;
        this.cinemaPath = cinemaPath;
        this.studios = studios;
    }
}
